feat(experiment): add apps.icon.set support for non-hosted app icons#469
feat(experiment): add apps.icon.set support for non-hosted app icons#469
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #469 +/- ##
==========================================
- Coverage 71.19% 71.17% -0.02%
==========================================
Files 222 222
Lines 18595 18612 +17
==========================================
+ Hits 13238 13248 +10
- Misses 4178 4187 +9
+ Partials 1179 1177 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
zimeg
left a comment
There was a problem hiding this comment.
🐣 A few quick comments and questions and I'm excited to test this next!
Co-authored-by: Eden Zimbelman <zim@o526.net>
zimeg
left a comment
There was a problem hiding this comment.
@srtaalej Right now I'm not having luck with this when testing in a shared team sandbox and the error isn't so obvious to me...
Let me know if this is something perhaps with the image I use? I'll include it here for testing and other reviewers:
| const ( | ||
| appIconMethod = "apps.hosted.icon" | ||
| // appIconSetMethod is the API method for setting app icons for non-hosted apps. | ||
| appIconSetMethod = "apps.icon.set" |
There was a problem hiding this comment.
🔬 issue: This outputs a warning to verbose logs and it's not clear what I might not be including?
uploading icon
icon error: https://slack.com/api/apps.icon.set error: missing_arguments
Error updating app icon: https://slack.com/api/apps.icon.set error: missing_arguments
Finished in 0.7s
There was a problem hiding this comment.
are you uploading through the manifest or is the image just in the root of the project?
There was a problem hiding this comment.
@srtaalej I saved this file to the root of the project 🌲 ✨
There was a problem hiding this comment.
the "file" fielf for the api request had the wrong name! can you try again ?
Changelog
Summary
This PR adds
IconSet()API method targeting theapps.icon.setendpoint for non-hosted (Bolt) app icons. Gated behind the set-icon experiment flag (--experiment=set-icon) (see Note)Note
Test plan
slack run --experiment=set-iconwith anicon.pnguploads icon once endpoint is availableslack runwithout the experiment flag does not attempt icon upload for non-hosted appsslack deployfor hosted apps continues to work as beforeRequirements